Popular Searches
Popular Course Categories
Popular Courses

Manual and Automatic Sorting

Manual and Automatic Sorting

Sorting, Filtering, and Grouping

Manual and Automatic Sorting in Tableau

Topic: Manual and Automatic Sorting in Tableau

Learning Objective: Understand how to manually arrange dimension members, automatically sort data using alphabetical or measure-based rules, configure sorting options, and apply the correct sorting method to business reports and dashboards.

Course Link: JustAcademy Tableau Training

Demo Link: Register for a Tableau Course Demo


1. Introduction to Manual and Automatic Sorting

Sorting is an important feature in Tableau that arranges data into a meaningful order. It helps users identify high-performing products, compare regional sales, organize categories, and make business reports easier to understand.

Tableau provides different sorting approaches. Two important approaches are manual sorting and automatic sorting.

Manual sorting allows users to control the order of individual dimension members by dragging headers, rearranging legend items, or configuring a manual order in the Sort dialog.

Automatic sorting arranges dimension members according to a defined sorting rule, such as alphabetical order, ascending or descending measure values, or a field-based sort. When the data or view changes, Tableau can recalculate a computed sort according to its configured rule.

Example

Suppose a company wants to display the following product categories:

Category Sales
Furniture 75,000
Technology 120,000
Office Supplies 45,000

If the company wants categories arranged by sales from highest to lowest, automatic measure-based sorting is suitable. If the company wants them displayed in a business-defined sequence regardless of sales, manual sorting is more appropriate.


2. What Is Manual Sorting in Tableau?

Manual sorting is a sorting technique in which the user explicitly decides the order of dimension members. Instead of relying on alphabetical order or a numerical measure, the user places the values in the required sequence.

Manual sorting is particularly useful when the desired order follows business logic rather than numerical performance.

Examples of Manual Sorting

  • Arrange project stages as Planning, Development, Testing, Deployment, and Maintenance.
  • Arrange priority levels as Low, Medium, High, and Critical.
  • Arrange sales pipeline stages in the order followed by the sales team.
  • Place important product categories in a preferred presentation order.
  • Arrange survey responses according to a predefined business sequence.

Example: Manual Product Category Order

Suppose a business wants the categories displayed in this order:

  1. Technology
  2. Furniture
  3. Office Supplies

This order may not match alphabetical order or sales performance. Manual sorting allows the user to define the preferred sequence.

Characteristics of Manual Sorting

  • The user controls the order of individual members.
  • Members can often be rearranged directly in the visualization.
  • A custom sequence can reflect business rules or presentation requirements.
  • The order is not automatically determined by the current value of a measure.
  • New members introduced by updated data may require review of the custom order.

3. Methods of Applying Manual Sorting

3.1 Drag-and-Drop Sorting in a Visualization

This method lets you reposition a dimension member by dragging its header to the required location.

Steps

  1. Open Tableau and connect to a dataset.
  2. Create a worksheet containing a dimension, such as Category or Product Name.
  3. Display the dimension members as headers in a table or chart.
  4. Click and hold the header of the member you want to move.
  5. Drag it to the desired position.
  6. Look for the placement indicator, such as a dark line, when supported by the view.
  7. Release the mouse button to apply the new order.
  8. Repeat the process for other members as needed.

Example

Original order:

  1. Furniture
  2. Office Supplies
  3. Technology

Required manual order:

  1. Technology
  2. Furniture
  3. Office Supplies

Drag Technology to the first position, then reposition the remaining categories if necessary.

3.2 Manual Sorting Through the Sort Dialog

The Sort dialog provides a more structured way to define a custom sequence.

Steps

  1. Open the worksheet containing the dimension you want to sort.
  2. Right-click the relevant dimension field or use its menu.
  3. Select Sort, where available.
  4. Choose Manual as the sorting method.
  5. Select the dimension members and use the available ordering controls or drag-and-drop list to reposition them.
  6. Arrange the members in the required order.
  7. Apply the settings and inspect the view.

The exact controls available depend on the field, visualization, and Tableau authoring environment.

3.3 Manual Sorting in a Legend

A legend may display the members of a dimension represented by different colors or marks. In supported views, these members can be manually reordered.

Steps

  1. Create a visualization that uses a dimension on Color or another legend-generating property.
  2. Locate the relevant legend.
  3. Open the legend's context menu and choose Sort, when available.
  4. Select Manual in the Sort dialog.
  5. Rearrange the legend members using the available controls.
  6. Verify the resulting order in both the legend and the visualization.

Important: Reordering a legend can also change the order of marks in the visualization. It does not necessarily change only the visual order of the legend items.


4. What Is Automatic Sorting in Tableau?

Automatic sorting is the process of arranging dimension members according to a sorting rule rather than manually placing every member in a custom sequence. Common automatic sorting rules include alphabetical order, data-source order, and sorting by an aggregated measure.

For example, a product chart can be configured to sort products by SUM(Sales) in descending order. Tableau determines the position of each product using the configured sorting rule.

Examples of Automatic Sorting

  • Sort customer names from A to Z.
  • Sort products from highest sales to lowest sales.
  • Sort regions by total profit.
  • Sort dates from earliest to latest.
  • Sort categories according to the order defined by the data source.

Characteristics of Automatic Sorting

  • Uses a specified sorting rule.
  • Can sort values alphabetically or according to a measure.
  • Can use an aggregation such as SUM, AVG, MIN, or MAX, depending on the field and available options.
  • Can recalculate the order when relevant data or the view changes.
  • Is useful for dynamic analysis and frequently updated reports.

Note: Automatic sorting is not a single dedicated button or one universal setting. Tableau offers several sorting controls and configurations that establish a rule for ordering the data.


5. Types of Automatic Sorting

Sorting Type Description Example
Alphabetical Sorting Arranges text values alphabetically. Customers from A to Z.
Numerical or Measure-Based Sorting Orders dimension members according to a measure. Products by total sales.
Ascending Sorting Arranges values from low to high, or in the corresponding ascending order for the field type. Regions by lowest to highest profit.
Descending Sorting Arranges values from high to low, or in the corresponding descending order for the field type. Regions by highest to lowest profit.
Data-Source-Order Sorting Uses the order supplied by the data source or its defined member order. Preserve a source-defined category order.
Nested Sorting Sorts dimension members within relevant groups or panes. Sort subcategories separately within each region.

6. How to Apply Automatic Sorting

6.1 Automatic Sorting Using a Header

A suitable header may provide a sort control that allows users to rearrange the members displayed in a view.

Steps

  1. Create a chart or table containing a dimension.
  2. Hover over a suitable header to reveal the sort control, if available.
  3. Click the control to apply the available sorting rule.
  4. Click again to reverse the sort direction, if supported.
  5. Inspect the result and confirm which field determines the order.

In Tableau's documented quick-sort behavior, the first click sorts descending, the second sorts ascending, and the third clears the sort. The available controls depend on the visualization.

6.2 Automatic Sorting Using the Toolbar

The toolbar provides ascending and descending sort buttons for supported views.

Steps

  1. Open a worksheet.
  2. Select the dimension you want to sort, where appropriate.
  3. Click the ascending or descending sort button in the toolbar.
  4. Check the displayed order.
  5. If the result is unexpected, inspect the selected dimension and the measure being used.

Important: If you do not select a field first, Tableau may sort the deepest dimension in the view. Toolbar sorting can also use the leftmost measure in the view, so check the sort logic when multiple measures are present.

6.3 Automatic Sorting Through the Sort Menu

The Sort menu gives you more control over the field and aggregation used to determine the order.

Steps

  1. Locate the dimension you want to sort.
  2. Right-click the field or use its menu.
  3. Select Sort.
  4. Choose the appropriate Sort By option.
  5. If you choose Field, select the measure used for sorting.
  6. Select an aggregation such as SUM or AVG, if available and appropriate.
  7. Choose ascending or descending order.
  8. Apply the sort and verify the result.

Example: Sort Products by Sales

Product Sales
Laptop 80,000
Mouse 12,000
Monitor 35,000
Mobile 95,000

Configure the Product dimension to sort by SUM(Sales) in descending order.

Display Order Product Sales
1 Mobile 95,000
2 Laptop 80,000
3 Monitor 35,000
4 Mouse 12,000

The order is determined by the measure values rather than by the user's manual placement of each product.


7. Manual Sorting vs. Automatic Sorting

Feature Manual Sorting Automatic Sorting
Definition The user defines the order of individual members. Tableau arranges members according to a configured sorting rule.
Control Direct control over member positions. Control over the rule, field, aggregation, and direction.
Typical method Drag headers or rearrange members in a Manual Sort dialog. Use sort controls or configure a field-based sort.
Business-defined order Well suited to custom business sequences. Suitable when a standard rule provides the intended sequence.
Measure-based order Does not automatically reorder members according to changing measure values. Can order members according to a measure such as SUM(Sales).
Response to data changes The existing custom sequence may remain, but new members may require manual review. A computed sort can recalculate according to the configured rule when relevant data changes.
Best use Workflow stages, priorities, and presentation order. Sales rankings, profit comparisons, alphabetical lists, and changing reports.
Main limitation Requires manual maintenance when the required sequence changes. May produce an unexpected order if the wrong field or aggregation is selected.

8. Example: Manual Sorting of Business Stages

Scenario: A project manager wants project statuses displayed in the order followed by the team.

Sample Data

Project Status
Website Redesign Testing
Mobile App Planning
CRM Upgrade Completed
Analytics Dashboard Development

Alphabetical sorting would not follow the team's workflow. The required order is:

  1. Planning
  2. Development
  3. Testing
  4. Completed

Procedure

  1. Place Status in a worksheet.
  2. Open the field's Sort menu.
  3. Choose Manual, if available.
  4. Move the status members into the required order.
  5. Apply the sort.
  6. Verify the sequence against the project workflow.

Business benefit: The report communicates the team's workflow clearly, even though the desired sequence is neither alphabetical nor based on a numerical measure.


9. Example: Automatic Sorting by Sales Performance

Scenario: A sales manager wants to see the strongest products first.

Sample Data

Product Sales Profit
Keyboard 18,000 4,500
Laptop 80,000 12,000
Mobile 95,000 15,000
Monitor 35,000 6,000

Procedure

  1. Place Product on Rows.
  2. Place Sales on Columns to create a bar chart.
  3. Open the Product sort settings.
  4. Choose Field as the sorting basis.
  5. Select Sales and SUM as the aggregation.
  6. Select descending order.
  7. Apply the sort.

Expected Result

Order Product Sales
1 Mobile 95,000
2 Laptop 80,000
3 Monitor 35,000
4 Keyboard 18,000

Business benefit: The manager can quickly identify the highest-selling product and compare the performance of the remaining products.


10. Choosing Between Manual and Automatic Sorting

The correct sorting method depends on the purpose of the analysis.

Requirement Recommended Approach Reason
Display customers from A to Z. Automatic alphabetical sort The order follows a standard text rule.
Show the highest-selling products first. Automatic measure-based sort The order follows sales values.
Display project stages in workflow order. Manual sort The sequence follows business logic.
Arrange priority labels in a custom sequence. Manual sort The order does not depend on alphabetical position.
Show the most profitable regions first. Automatic measure-based sort The order follows profit values.
Keep a predefined order for a presentation. Manual sort or a defined custom-order field The presentation requires a specific sequence.
Display months chronologically. Automatic date-based sort A real date field preserves the calendar sequence.

11. Sorting with Multiple Dimensions

Tableau views may contain multiple dimensions, such as Region, Category, and Product. In these cases, the selected sorting method affects how values are arranged within the view.

Example

A company wants to analyze sales by Region and Category. There are two possible requirements:

  • Local comparison: Sort categories by sales separately within each region.
  • Overall comparison: Use a consistent category order based on sales across the relevant view.

The first requirement may call for a nested sort. The second may call for a non-nested sort. Manual sorting can be useful when the desired order is a fixed business sequence.

When a result appears incorrectly sorted, inspect the sort settings, the dimension being sorted, the selected measure, and whether the sort is nested.


12. How Data Changes Affect Sorting

Understanding how sorting responds to changes is important when building reports that are refreshed regularly.

12.1 Manual Sorting After Data Updates

A manual order is based on the member sequence defined by the user. If new products, regions, or categories are introduced, the user may need to review the order and decide where new members belong.

12.2 Automatic Sorting After Data Updates

A computed sort uses a rule, such as descending SUM(Sales). When the underlying values change and the view is recalculated, Tableau can update the positions according to that rule.

Example

Suppose Product A has sales of 50,000 and Product B has sales of 40,000. An automatic descending sort places Product A first. If a later refresh changes Product B's sales to 60,000, the computed sort can place Product B first.

With a manual sort, Product A may remain before Product B because the sequence was explicitly defined by the user, unless the user changes it.

Important: The behavior of a saved sort depends on its configuration, the view, filters, and available data. Always verify the result after refreshing or modifying a workbook.


13. Common Mistakes and Troubleshooting

Problem Possible Reason Solution
Categories are in alphabetical order instead of the desired order. An alphabetical sort is active. Use Manual sorting or choose the correct field-based sort.
Products are sorted by the wrong measure. The sort uses a different measure or default field. Inspect the Sort dialog and explicitly choose the intended field and aggregation.
The manual order is difficult to maintain. New dimension members are added regularly. Review the custom order or consider a defined business-order field.
The sort direction is reversed. Ascending was selected instead of descending, or vice versa. Check the direction and confirm the intended highest or lowest value.
Months appear alphabetically. Month names are treated as text. Use a proper date field or a numeric month-order field.
Different panes show different category orders. A nested sort is active. Check whether a non-nested sort is more suitable.
The sort control is missing. The view may not support that control, or sort icons may be hidden. Check the visualization and available menu options.
Manual sorting is not available as expected. The selected field or view may not support the desired manual-sort operation. Try the field's Sort menu or a supported header or legend interaction.

14. Best Practices for Manual and Automatic Sorting

  • Identify the business question before selecting a sort method.
  • Use automatic sorting for rankings that should follow changing numerical values.
  • Use manual sorting for meaningful custom sequences, such as workflow stages.
  • Choose the correct measure and aggregation for measure-based sorting.
  • Use chronological sorting for dates and time-series visualizations.
  • Check whether the sort should be nested or non-nested when multiple dimensions are present.
  • Review manual sorting after adding new members to the dataset.
  • Use clear labels and readable charts so the sorting rule is easy to interpret.
  • Test sorting after changing filters or refreshing the data.
  • Keep related dashboard views consistent when they support the same comparison.

15. Hands-On Practice Exercises

Exercise 1: Manual Sorting of Categories

Task: Arrange Technology, Furniture, and Office Supplies in the order Technology, Furniture, Office Supplies.

Goal: Practice manually repositioning dimension members.

Exercise 2: Automatic Sorting of Products

Task: Create a bar chart of products and sales. Sort by SUM(Sales) in descending order.

Goal: Identify the highest-selling product.

Exercise 3: Alphabetical Sorting

Task: Create a customer list and arrange names alphabetically.

Goal: Understand automatic text sorting.

Exercise 4: Manual Sorting of Priority Levels

Task: Arrange Low, Medium, High, and Critical in that exact sequence.

Goal: Apply a custom business order.

Exercise 5: Automatic Sorting by Profit

Task: Create a regional profit chart and sort regions from highest to lowest SUM(Profit).

Goal: Compare profitability across regions.

Exercise 6: Compare Manual and Automatic Sorting

Task: Apply a manual category order, then change the sort to descending SUM(Sales).

Goal: Observe how the same dimension is ordered differently by a fixed sequence and a measure-based rule.


16. Mini Project: Retail Sales Sorting Dashboard

Project Objective: Build a Tableau dashboard that uses manual and automatic sorting to present product performance, regional profitability, and business categories clearly.

Dataset Fields

  • Product Name
  • Category
  • Region
  • Order Date
  • Sales
  • Profit
  • Quantity

Project Steps

  1. Connect the dataset to Tableau.
  2. Create a product sales bar chart.
  3. Apply automatic sorting by SUM(Sales) in descending order.
  4. Create a regional profit chart and sort it by SUM(Profit).
  5. Create a category table and apply a manual business-defined order.
  6. Create a monthly sales chart with dates displayed chronologically.
  7. Place the worksheets in a dashboard.
  8. Check the sorting behavior after applying filters.
  9. Review the final order of each visualization.
  10. Write three observations based on the sorted results.

Expected Outcomes

  • A product chart with the strongest sales performers displayed first.
  • A regional profit chart arranged by profitability.
  • A category table using a custom sequence.
  • A monthly sales trend in chronological order.
  • A dashboard that demonstrates when manual and automatic sorting are appropriate.

17. Interview Questions and Answers

Q1. What is manual sorting in Tableau?

Answer: Manual sorting allows users to specify the order of dimension members by dragging headers or legend items or by using the Manual option in the Sort dialog, where available.

Q2. What is automatic sorting in Tableau?

Answer: Automatic sorting arranges members according to a configured rule, such as alphabetical order, data-source order, or values from an aggregated measure.

Q3. What is the main difference between manual and automatic sorting?

Answer: Manual sorting uses a user-defined sequence. Automatic sorting uses a sorting rule to determine the order of members.

Q4. When should manual sorting be used?

Answer: Use manual sorting when the required order follows business logic, such as project stages, priority levels, or a custom presentation sequence.

Q5. When should automatic sorting be used?

Answer: Use automatic sorting when members should follow a standard or computed rule, such as ranking products by sales or sorting names alphabetically.

Q6. How do you manually sort categories?

Answer: Create a view containing the categories, then drag the headers into the desired sequence or use the field's Sort menu and select Manual, if available.

Q7. How do you sort products by sales automatically?

Answer: Open the Product sort settings, choose Field, select Sales and SUM as the aggregation, and select descending order.

Q8. Does automatic sorting update when the data changes?

Answer: A computed sort can recalculate when relevant data changes, according to the configured rule. The result should be checked after refreshing the data or changing filters.

Q9. Does manual sorting automatically rank members by changing sales values?

Answer: No. Manual sorting defines a custom sequence rather than automatically ranking members according to changing sales values.

Q10. Can manual sorting be applied to a legend?

Answer: Yes, in supported views. Legend members can be reordered using the available manual-sort controls. Reordering a legend can also affect mark order in the visualization.

Q11. Why might automatic sorting produce an unexpected result?

Answer: Tableau may be using a different field, aggregation, dimension, or nested-sort context than intended. Inspect the Sort menu and the view structure.

Q12. What is the difference between sorting by SUM(Sales) and AVG(Sales)?

Answer: SUM(Sales) orders members by their total sales, whereas AVG(Sales) orders them by average sales values. These can produce different rankings.

Q13. What is nested sorting?

Answer: Nested sorting orders members within individual groups or panes, so the order may differ across groups.

Q14. How can you remove a sort?

Answer: Use the field's Clear Sort option when available or use the worksheet's Clear Sorts command.

Q15. How do manual and automatic sorting help in dashboards?

Answer: Manual sorting supports meaningful custom sequences, while automatic sorting makes performance comparisons and frequently updated rankings easier to maintain.


18. Quick Revision Notes

  • Manual sorting lets the user define the order of individual members.
  • Automatic sorting uses a configured sorting rule.
  • Manual sorting is useful for workflow stages and custom business sequences.
  • Automatic sorting is useful for sales rankings and alphabetical lists.
  • Drag-and-drop sorting can be used on supported headers and legends.
  • The Sort dialog provides manual and field-based sorting options.
  • Measure-based sorting can use aggregations such as SUM or AVG.
  • A computed sort can recalculate when relevant data changes.
  • A manual order may need maintenance when new members appear.
  • Nested sorting can produce different orders within different panes.
  • Always verify the selected field, aggregation, direction, and sort context.

19. Final Checklist

  • Understand the definition of manual sorting.
  • Understand the definition of automatic sorting.
  • Practice dragging headers into a custom order.
  • Practice sorting through the Sort dialog.
  • Sort products by SUM(Sales) in descending order.
  • Sort regions by SUM(Profit).
  • Understand the difference between a custom sequence and a computed ranking.
  • Check how sorting behaves when the data changes.
  • Complete the retail sales sorting dashboard.
  • Verify that each sorting method matches the business requirement.

20. Conclusion

Manual and automatic sorting are two useful approaches for organizing Tableau visualizations. Manual sorting is ideal when users need a specific business-defined order, while automatic sorting is better suited to alphabetical lists, chronological sequences, and rankings based on measures.

By understanding how to drag dimension members, configure the Sort dialog, choose the correct aggregation, and check sorting behavior after data changes, users can build clearer reports and more effective dashboards.

Recommended Learning Resources

Next Step: Practice creating the same product chart using manual sorting and automatic sorting by SUM(Sales). Compare the results and decide which method best supports the business question.

whatsapp